package com.beijiteshop.shop.ui.address.repo

import com.beijiteshop.libcommon.network.repo.BaseRepo
import com.beijiteshop.shop.model.api.response.AddressBean

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/9 19:37
 * @Description
 */
class AddressRepo(private val service: AddressService) : BaseRepo() {

    fun getAddressList() = service.getAddressList()

    fun addAddress(addressBean: AddressBean) = service.addAddress(addressBean)

    fun updateAddress(addressBean: AddressBean) = service.updateAddress(addressBean)

    fun deleteAddress(id: String) = service.deleteAddress(id)
}